//
//  OnSaleFooterView.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/10.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "OnSaleFooterView.h"

@implementation OnSaleFooterView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        GLGWView * bankGroundView = [[GLGWView alloc] initWithInSuperView:self.contentView];
        [bankGroundView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.contentView).offset(0);
        }];
        
        CGFloat butWidth = KScreenWidth - kWidthProportion_In_iPhoneTriploid(75)*2 -kWidthProportion_In_iPhoneTriploid(25);
        for (int i=0; i<2; i++) {
            GLGWButton * bottomBut = [[GLGWButton alloc] initWithFrame:CGRectMake(butWidth+kWidthProportion_In_iPhoneTriploid(75)*i+kWidthProportion_In_iPhoneTriploid(10)*i, kHeightProportion_In_iPhoneTriploid(15), kWidthProportion_In_iPhoneTriploid(75), kHeightProportion_In_iPhoneTriploid(30)) hTitle:@"哈哈" titleLableFont:SYSTEMFONT(12) titleLableColor:[UIColor colorWithHexString:@"#666666"] theCornerRadius:kHeightProportion_In_iPhoneTriploid(15) theBorderWidth:1.0 theBorderColor:kColor_Rule_Yellow backgroundColr:[UIColor whiteColor] inSuperView:self];
            bottomBut.tag = 234+i;
            [bottomBut addTarget:self action:@selector(bottomButAction:) forControlEvents:UIControlEventTouchUpInside];
        }
    }
    return self;
}

- (void)bottomButAction:(GLGWButton *)sender{
    if (self.Block_BottomAction) {
        self.Block_BottomAction(sender);
    }
}

@end
